﻿#include "menu.h"
#include "ui_menu.h"
#include<QFile>
#include<QDebug>

menu::menu(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::menu)
{
    ui->setupUi(this);
    QFile file("../manage.css");
    if(file.open(QFile::ReadOnly)){
       QString str=file.readAll();
       setStyleSheet(str);
    }else{
        qDebug()<<"open manage.css fail";
    }
}

menu::~menu()
{
    delete ui;
}



void menu::on_add_clicked()
{
    this->stuAdd.show();
}

void menu::on_quit_clicked()
{
    this->close();
}

void menu::on_query_clicked()
{
    this->stuQuery.show();
}

void menu::on_del_clicked()
{
    this->stuDelete.show();
}

void menu::on_edit_clicked()
{
    this->stuEdit.show();
}
